import Vue from 'vue'
import LazyDetailCpt from './LazyDetailCpt.vue'

LazyDetailCpt.initView = (props)=>{
    const _props = props || {};
    const Cpt = new Vue({
        render (h) {
            return h(LazyDetailCpt, {
                props: _props
            });
        }
    });
    const component = Cpt.$mount();
    document.body.appendChild(component.$el);
    const cpt = Cpt.$children[0];
    return {
        component: cpt,
        destroy (element) {

        }
    };
};

export default LazyDetailCpt;